package teste.pws.scv;

import java.util.ArrayList;
import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.*;
import pws.scv.AloClasseSwing;

public class TesteAloClasse {
	
	private static List<String> lista = new ArrayList<String>();
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		AloClasseSwing alo = new AloClasseSwing();	
		lista = alo.getLista();
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		// Verificando se o nome esta na lista
		assertTrue(lista.contains("Gustavo Barbosa"));
	}

}
